package com.kmxd.ams.client.use.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 全宗|单位利用档案
 *
 * @author ZuoLG
 * @since 2022-08-02
 */
@Data
@Schema(description = "全宗|单位利用档案对象")
public class UseArchVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  @Schema(description = "公司ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long comId;

  @Schema(description = "全宗ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long fondsId;

  @Schema(description = "用户ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  @Schema(description = "利用表id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long orderId;

  @Schema(description = "拆单表id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long outOrderId;

  @Schema(description = "档案所属表名")
  private String tableId;

  @Schema(description = "档案题名")
  private String title;

  @Schema(description = "档案ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long archId;

  @Schema(description = "档号")
  private String archCode;

  @Schema(description = "档案类型编号")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long archTypeId;

  @Schema(description = "所属部门ID")
  private String deptId;

  @Schema(description = "所属部门名称")
  private String deptName;

  @Schema(description = "归档部门")
  private String fillingDepartment;

  @Schema(description = "项目文件案卷")
  private String archLevel;

  @Schema(description = "年度")
  private Integer year;

  @Schema(description = "密级")
  private String security;

  @Schema(description = "是否加密 0不加密，1加密")
  private Boolean isSecurity;

  @Schema(description = "保管期限")
  private String retentionPeriod;

  @Schema(description = "文件形态")
  private String fileType;

  @Schema(description = "归档份数")
  private Integer fillingNum;

  @Schema(description = "隶属处室ID")
  private String sectionId;

  @Schema(description = "隶属处室")
  private String sectionName;

  @Schema(description = "用户部门ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userDeptId;

  @Schema(description = "电子借阅类型")
  private Boolean eleType;

  @Schema(description = "电子权限")
  private Boolean eleAuth;

  @Schema(description = "电子利用开始日期")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date startTime;

  @Schema(description = "电子利用结束日期")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date endTime;

  @Schema(description = "文档编号")
  private String docNumber;

  @Schema(description = "授权")
  private Integer applyEleAuth;

  @Schema(description = "备注")
  private String remarks;

  @Schema(description = "状态")
  private Boolean status;

  @Schema(description = "排序")
  private Integer sort;

  @Schema(description = "创建人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createBy;

  @Schema(description = "创建时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @Schema(description = "更新人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateBy;

  @Schema(description = "更新时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;

  @Schema(description = "删除状态(0-正常,1-已删除)")
  private Long delFlag;

  @Schema(description = "申请数量")
  private Integer applyArchNum;

  @Schema(description = "库存量")
  private Integer storageNum;
}
